package com.design03_behavioral.pattern16_responsibilityChains.example01;

/**
 * @ClassName HandlerC
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/8 1:07
 */
public class HandlerC extends Handler {
    @Override
    public void handle(RequestData requestData) {
        System.out.println("HandlerC 执行代码逻辑! 处理: " +
                requestData.getData());
        requestData.setData(requestData.getData());
        if(successor != null){
            successor.handle(requestData);
        }else{
            System.out.println("执行中止!");
        }
    }
}
